<!-- 
<a href="http://localhost:8080/ylkj/query.do   http://localhost:8080/ylkj/laywer/index.do">query</a> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=UTF-8"%>
<%
	String appTitle=request.getParameter("title");
	String webPath=request.getContextPath();
    String appPath=webPath+"/";
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<title></title>

<script type="text/javascript" src="../res/lib/jquery/1.9.1/jquery.min.js"></script> 
<script language="javascript">

function testButton(){
alert(111);
$.ajax({ url: "http://127.0.0.1:80/ylkj/rest/uploadAnswerInfo.do", 
    //data:{"serverId":serverId},
    data:{ 
    "queId": "1111", 
    "phrCode": "1111", 
    "anwserContent": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 
    "anwserType": "1", 
    "payFlag": "1", 
    "payListen": "5", 
    "listenNum": "1", 
    "answerTime": "500" 
    },
    type:'post',
    success: function(data){
    alert(data+"保存本地库成功");
    /* $('.weixinAudio').weixinAudio({
    autoplay:false,
    //src:'http://piaqj110487.bj.cdnjsp.com.cn/ylkj/ylkj/file/123.amr',
    src:data, 
    });*/
    },
         error: function (xhr, errorType, error) {
           console.log(error);
       }
     }); 
}
alert(1);
</script>

</head>
<body>
<input type="button" onclick="javascript:testButton();"/>
您好<%= appPath%>
</body>
</html>